﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.PermissionManagement
{
    /// <summary>
    /// 操作信息表，比如增删改查等操作
    /// </summary>
    [Table("PM_OperationInfo")]
    public class OperationInfo : BaseModel
    {
        /// <summary>
        /// 操作名字
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string OperationName { get; set; }

        /// <summary>
        /// 操作描述
        /// </summary>
        [Column(TypeName = "text")]
        public string OperationDescribe { get; set; }

        /// <summary>
        /// 功能Id
        /// </summary>
        public Guid FunctionId { get; set; }

        /// <summary>
        /// 状态，是否启用
        /// </summary>
        public bool States { get; set; }
    }
}
